package com.fwmagic.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.fwmagic.springcloud.entities.CommonResult;

/**
 * @description:
 * @author: fangwei
 * @date: 2022/5/4
 **/

public class CustomerBlockHandler {
    public static CommonResult handleException(BlockException exception) {
        return new CommonResult(200, "自定义的限流处理信息……CustomerBlockHandler");
    }
    public static CommonResult handleException2(BlockException exception) {
        return new CommonResult(2022, "2 - 自定义的限流处理信息……CustomerBlockHandler");
    }
}
